package com.lagou.task09;

public class SubAbstractTest extends AbstractTest {
    @Override
    public void show() {
        System.out.println("子类必须实现父类的抽象方法，否则就必须声明为抽象类，否则就不能继承抽象类");
    }

    public static void main(String[] args) {
        SubAbstractTest  sbt1 = new SubAbstractTest();
        sbt1.show();

        System.out.println("----------------------------");
        //1。申明AbstractTest的引用指向子类的对象，形成多态
        AbstractTest at = new SubAbstractTest();
        at.show();
    }
}
